import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";

import "./assets/css/reset.less";
import "amfe-flexible";

import {
  Tabbar,
  TabbarItem,
  Swipe,
  SwipeItem,
  Search,
  NavBar,
  Grid,
  GridItem,
  List,
  Card,
  Sidebar,
  SidebarItem,
  Empty,
  SubmitBar,
  Checkbox,
  CheckboxGroup,
  Icon
} from 'vant';

import { Form } from 'vant';
import { Field } from 'vant';
import { Button } from 'vant';
import { CouponCell, CouponList } from 'vant';
import { Cell, CellGroup } from 'vant';
import { AddressList } from 'vant';
import { AddressEdit } from 'vant';
import { Area } from 'vant';
import { Popup } from 'vant';
import { Sku } from 'vant';
import { Stepper } from 'vant';
import { GoodsAction, GoodsActionIcon, GoodsActionButton } from 'vant';
import { Dialog } from 'vant';

// 全局注册
Vue.use(Dialog);

Vue.use(GoodsAction);
Vue.use(GoodsActionButton);
Vue.use(GoodsActionIcon);

Vue.use(Stepper);

Vue.use(Sku);
Vue.use(Popup);

Vue.use(Area);

Vue.use(AddressEdit);

Vue.use(AddressList);

Vue.use(Cell);
Vue.use(CellGroup);

Vue.use(CouponCell);
Vue.use(CouponList);
Vue.use(Button);

Vue.use(Form);
Vue.use(Field);
Vue.use(Icon);
Vue.use(Checkbox);
Vue.use(CheckboxGroup);
Vue.use(SubmitBar);
Vue.use(Empty);
Vue.use(Sidebar);
Vue.use(SidebarItem);
Vue.use(Card);
Vue.use(List);
Vue.use(Grid);
Vue.use(GridItem);
Vue.use(NavBar);
Vue.use(Search);
Vue.use(Swipe);
Vue.use(SwipeItem);
Vue.use(Tabbar);
Vue.use(TabbarItem);
Vue.config.productionTip = false;

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
